<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<%-- <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%> --%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>系统登录</title>
    <jsp:include page="/WEB-INF/views/common.jsp"></jsp:include>
    <script type="text/javascript" src="${ctx }/js/user/userlogin.js"></script>
	<link rel="stylesheet" type="text/css" href="${ctx }/login/css/style.css" />
<style>
.error{
	color:red;
}
</style>
<script type="text/javascript">
	function clsusername(){
		$("#username-error").remove();
	}
	function clspassword(){
		$("#password-error").remove();
	}
	//new-add-2018-04-13
 	try{
    	var _href = window.location.href+"";
    	if(_href && _href.indexOf('?kickout')!=-1){
    		$.messager.alert('提示','该账户已在其它地方登录！','',function(){
    			if (window != top) { //session过期后，登录窗口出现在子窗口解决方法    
     	  	    	//top.location.href = location.href;
     	  	    	top.location.href = $WEB_ROOT_PATH + '/w/login';
     	  	    }
    		});
    	}
    }catch(e){
    	
    }
</script>
<body>
	<div id="web">
	<p style="height:130px;"></p>
	<p align="center"><img src="${ctx }/login/images/logzi.png" /></p>
	<p style="height:40px;"></p>
	<div class="login">
	   <div class="banner">
	   <iframe id="frame_banner" src="${ctx }/login/sban/banner.html" height="218" width="100%"  allowtransparency="true" title="test"  scrolling="no" frameborder="0"></iframe>
	   </div>
	   <form action="#" id="loginFormId" method="post">
		   <div class="logmain">
		      <h1>&nbsp;</h1>
		      <div class="logdv">
		         <span class="logzi">账 号：
		         </span>
		        <input name="username" type="text" id="userName" value="" onkeyup="clsusername()" />
		      </div>
		      <div class="logdv">
		      <span class="logzi">密 码：</span>
		        <input name="password" type="password" id="password" value="" onkeyup="clspassword()" />
		      </div>
		      <!-- <div class="logdv"> -->
		        <p class="logzi">&nbsp;</p>
		        <!-- <a href="#" class="more">忘记密码</a> -->
		        <!-- <input name="" type="checkbox" value=""  class="cex"/>记住密码 -->
		      <!-- </div> -->
		      <div class="logdv" style="height:40px;">
		        <p class="logzi">&nbsp;</p>    
		        <input id="checkId" name="提交" type="submit" class="btnbg" value="点击登录" />
		      </div>
		      <!-- <div>
		        <a href="#" class="more">注册</a>
		      </div> -->
		   </div>
	   </form>
	</div>
	<p style="height:100px;"></p>
	<p align="center">技术支持:Master</p>
	</div>
</body>
</html>
